know which side (one's) bread is buttered

Translations
знать, что к чему; знать, где выгода
He knows which side his bread is buttered on and always sides with his boss.
Он знает, что к чему, и всегда на стороне своего начальника.
Definitions
To be aware of where one's best interests lie or to know who or what provides one with advantages, benefits, or support, and to act accordingly.
Words
know

verb
знать
which

article or possessive pronoun
какая
side

noun
сторона
one

pronoun
свой
s
притяжательная форма
bread

noun
хлеб
is

functional word
есть
buttered

verb
намазан